package com.itheima.service.impl;

import com.itheima.mapper.UserDao;
import com.itheima.pojo.User;
import com.itheima.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IUserServiceImpl implements IUserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findByUsername(String userName) {

        return userDao.findByUsername(userName);
    }
}
